package com.qingzhuge.member.service.wx;

import com.qingzhuge.member.entity.SysMember;
import com.qingzhuge.member.dto.UserLoginResponse;
import com.qingzhuge.member.dto.WxUserInfoRequestDto;
import com.qingzhuge.member.dto.WxUserPhoneInfoResponse;
import com.qingzhuge.member.enums.EnumThirdOauthType;

/**
 * @author : zero.xiao
 * @description :
 * @date : 2018/10/17 0017 上午 11:08
 * @modified :
 * @since :
 */
public interface IWxUserService {

    /**
     * 登陆接口
     */
    UserLoginResponse login(String appid, WxUserInfoRequestDto request, EnumThirdOauthType type);

    /**
     * 获取用户绑定手机号信息
     * @param appid
     * @param sessionKey
     * @param request
     * @return
     */
    WxUserPhoneInfoResponse phone(String appid, String sessionKey, WxUserInfoRequestDto request);

    /**
     *
     * @param appid
     * @param request
     * @param uid
     * @return
     */
    SysMember updateMobile(String appid, WxUserInfoRequestDto request, Long uid);
}
